let getQueryStringByName = function (name) {
  /* eslint-disable */
  let result = document.location.search.match(new RegExp('[\?\&]' + name + '=([^\&]+)', 'i'))
  if (result == null || result.length < 1) return ''
  return result[1]
}

let config = {
  DEBUG: true,
  // URL: 'http://47.95.111.149:10189',
  // URL: 'http://192.168.113.216:10087/',
  URL: '/slot',
  TITLE: '百万富翁',
  model: (/iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())) ? 'ios' : 'android',
  VConsole: false
}

if (process.env.NODE_ENV === 'production') { // 如果是线上环境，修改对应的参数
  config.URL = '/slot'
}
export default config
